<%@ taglib prefix='c' uri='http://java.sun.com/jstl/core_rt'%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title><spring:message code="title.login" /></title>
</head>
<SCRIPT language=JavaScript type=text/javascript>

	//test the username element of a form and correct it if it's oracle or fail
	function isValidUsername(form){
	if (form.j_username.value == "") {
        alert('Please enter a Username.');
        form.j_username.focus();
        return false;
	}
	return true;
	}
	
	//perform a login for the LoginForm
	function doLogin(form) {
    //test username
    if (!isValidUsername(form)) {
        return;
    }
    form.submit();
    }
	</SCRIPT>
<body>
<div id="error_div">Invalid LoginId/Password combination</div>
<form id="loginForm" class="fl" action="<c:url value='/login.htm'/>"
	onSubmit="javascript:doLogin(document.loginForm); return false"
	method="POST"><label for="userName"><a>*</a>Login Id</label> <span><input
	name="j_username" type="text" /></span> <label for="password"><a>*</a>Password</label>
<span><input name="j_password" type="password" /></span> <input
	name="submit" type="submit" value="Submit" /></form>
</body>
</html>